var GameHelper = {
	rand:function (min, max) {
		return min + Math.round(Math.random() * (max - min));
	},
	getRandElements:function (elements, num) {
		var result = [];
		for (var i = 0; i < num; i++) {
			result.push(elements[this.rand(0, elements.length - 1)])
		}
		return result;
	}
};

var GameState = {
	LOADING:'loading',
	LOADED:'loaded',
	READY:'ready',
	PLAYING:'playing',
	PAUSED:'paused'
};

var GameSize = {
	main:{
		width:800,
		height:535
	},
	roll:{
		width:128,
		height:383
	}
};